#ifndef __TEXTURE_H
#define __TEXTURE_H

#include "../inc/main.h"

typedef struct {
    SDL_Texture *texture;
    void* pixels;
    int pitch;
    int w;
    int h;
} Texture;

extern SDL_Texture *gTexture;
SDL_Texture* loadTexture(const char* imgPath);
SDL_Texture* loadTextureEx(const char* imgPath, SDL_Renderer **renderer);
SDL_Texture* loadTextureExRect(const char* imgPath, SDL_Renderer **renderer, SDL_Rect *srcRect);
Texture loadImageTexture(SDL_Renderer **renderer, const char* imgPath);
Texture loadImageTextureWithFormat(SDL_Window **win, SDL_Renderer **renderer, const char* imgPath);

#endif // __TEXTURE_H
